import React from 'react';
import UserName from './UserName';
import User from './User';

class Mine extends React.Component{
    constructor(props){
        super(props)
    }
    render(){
       if(sessionStorage.getItem("user_info")){
           return(
               <UserName/>
           )
        }
        else{
            return(
                <User/>
            )
               
           }
       
    }
}


export default Mine;